using System;
using System.Collections.Generic;
using System.Text;

using System.Xml.Serialization;

namespace XMIAddin.Xmi
{
    [Serializable]
    public class UmlParameter : UmlModelElement, IUmlTyped
    {
        [XmlAttribute("kind")]
        public string Kind = IN;

        public const string IN = "in";
        public const string OUT = "out";
        public const string INOUT = "inout";
        public const string RETURN = "return";

        [XmlElement("TypedElement.type", Namespace="org.omg.xmi.namespace.UML2")]
        public UmlTypedElementType ElementType = null;

        public UmlTypeReference TypedElementType
        {
            set { ElementType = new UmlTypedElementType(); ElementType.Type = value; }
        }

    }
}
